statPercent

  • function
 

Get the percentage of total game time for a certain time for positioning stats.

viewmodel.statPercent(time)

Get the percentage of total game time for a certain time for positioning stats.

Parameters

  1. time {Number}

    The time of the stat.

Returns

{Number}

The percentage through the total game time the current time is.

Use in a template like:

<span style="left: {{statPercent time}}%">